<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
session_start();
class Login extends CI_Controller {

 function __construct()
 {
   parent::__construct();
 }

 function index()
 {
   if($this->session->userdata('logged_in'))
   {
	redirect('home');
   }
   else
   {
	$this->load->helper(array('form'));
	$this->load->view('login');
   }
 }

}

?>